<html>
<head>
	<title>Report ${title}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="main" />
	<g:javascript src="jquery.fixedtableheader-1-0-2.min.js"></g:javascript>
	<g:javascript>
		$(document).ready(function(){
			$('#__bookmark_1').fixedtableheader(); 
		});
	</g:javascript>
	<style>
			* {padding:0;margin:0}
			.floatHeader {
			}
			.header {
				background-color: #fff;
				font-size: 15px;
			}
			.separator {
				clear: both;
				width: 100px;
				height: 200px;
			}
		</style>
</head>
<body>
<div class="body">
	<g:form action="run" name="paramForm">
		<input type="hidden" name="id" value="${id}">
		<input type="hidden" name="rerun" value="1">
		<g:each var="k" in="${reportParams.keySet() }">
			<input type="hidden" name="${k}" value="${reportParams[k]}">
		</g:each>
	</g:form>
    <div class="nav">
		<g:link class="edit" action="run" onClick="javascript:document.forms.paramForm.submit();return false;">
			<g:message code="birt.view.ChangeParameters"/>
		</g:link>
		<!-- ${reportParams.format ="pdf" }  -->
		<span class="menuButton"><a><g:message code="birt.view.downloadAs" /> :</a></span>
		<!-- ${reportParams.format ="html" } -->
		<span class="menuButton">
			<g:link action="downloadAs" id="${id}.html" params="${reportParams}">
            	<img src="${resource(dir:'images/birt',file:'icon_html_sm.gif')}">
           	</g:link>
        </span>
		<!-- ${reportParams.format ="xls" } -->
		<span class="menuButton">
			<g:link action="downloadAs" id="${id }.xls" params="${reportParams}">
            	<img src="${resource(dir:'images/birt',file:'icon_xls_sm.gif')}">
            </g:link>
        </span>
		<!-- ${reportParams.remove('format') } -->
	</div>
	<% out << reportContent %>
</div>
</body>
</html>
